package controle;

import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import dominio.Item;

@ManagedBean(name="itemMB")
@SessionScoped
public class ItemManagedBean {
	
	private Item item = new Item();
	
	private List<Item> listaItens = new ArrayList<Item>();
	
	public String reiniciar(){
		item = new Item();
		return null; 
	}

	public Item getItem() {
		return item;
	}

	public void setItem(Item item) {
		this.item = item;
	}

	public List<Item> getListaItens() {
		return listaItens;
	}

	public void setListaItens(List<Item> listaItens) {
		this.listaItens = listaItens;
	}
	
	
}
